//
// Created by seeed on 25-8-14.
//

#ifndef RECORDER_H
#define RECORDER_H
#include <pins_arduino.h>

//声明类
class Recorder {
private:
    uint8_t playPin;
    uint8_t recordPin;

public:
    explicit Recorder(uint8_t play_Pin = D1);
    
    // 开始录制
    void startRecord() const;
    
    // 结束录制
    void stopRecord() const;
    
    // 开始播放
    void startPlay() const;
    
    // 停止播放
    void stopPlay()  const;
};

#endif //RECORDER_H
